convert list of strings into tensor